﻿angular.module("wxTest", ["ngRoute"])
.config(function ($routeProvider) {
    $routeProvider.
    when("/setting", {
        controller: "wxSettingCtrl",
        templateUrl: "_setting"
    });
})
.controller("wxSettingCtrl", function ($scope, $http) {
    $scope.saveSetting = function () {
        alert(appid);
        //var data = $http.post("__setting", wxSetting);
        //alert(data.UserToken);
    }
});